#include<iostream>
#include "Mutex.hpp"
#include "Log.hpp"
using namespace MuteModule;
using namespace LogModule;
int main()
{
    // auto p1 = std::make_unique<ConsoleLogStrategy>();
    // p1 -> SyncLog("hello");
    // auto p2 = std::make_unique<FileLogStrategy>(); //c++14引入的管理智能指针的方法
    // p2 -> SyncLog("期末不挂科,尤其是英语");
    LOG(LogLevel::INFO) << "hhhh " << 3.14 << " " << 5;
    Enable_File_Log_Strategy();
    LOG(LogLevel::INFO) << "hhhh " << 3.14 << " " << 6;
    LOG(LogLevel::INFO) << "hhhh " << 3.14 << " " << 6;
    LOG(LogLevel::INFO) << "hhhh " << 3.14 << " " << 6;
    LOG(LogLevel::INFO) << "hhhh " << 3.14 << " " << 6;
    Enable_Console_Log_Strategy();
    LOG(LogLevel::INFO) << "hhhh " << 3.14 << " " << 7;
    LOG(LogLevel::INFO) << "hhhh " << 3.14 << " " << 7;
    LOG(LogLevel::INFO) << "hhhh " << 3.14 << " " << 7;
    LOG(LogLevel::INFO) << "hhhh " << 3.14 << " " << 7;
    return 0;
}